// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(63,1) == 0;
	question = "special";
	text1 = "You are crossing into the Dera Reaches, the dry, arid region at the south end of Terrestia. You feel an odd sensation of unfamiliarity as you travel south. You are quite confident that you have never been down here.";
	text2 = "As you travel, something about the heat and the dust starts to irritate you, more than you would have thought.";
	text3 = "You start to feel a deep, irrational anger, the sort that you suspect plagued you well before you lost your memory. The sort that comes from heavy Shaping and augmentation.";
	text4 = "With a little concentration, you are able to quell the sensation. Which is good, because there is a platoon of guards blocking the bridge ahead.";
	text5 = "You almost feel that it would be good to have someone to take this rage out on. Which is good, because there is a platoon of guards blocking the bridge ahead.";
	action = SET_SDF 63 1 1;
	code =
		if (gf(100,22) < 14)
			rs(5);
			else rs(4);
	break;
	
begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(63,4) == 0;
	question = "special";
	text1 = "This is the grove where the Unbound was hiding. The ground was completely torn up by the massive creature's claws. Based on the amount of droppings and bones, the creature was probably hiding here for some time.";
	text2 = "You wonder how the crazed beast was able to show such patience. Perhaps it was waiting for some signal that never came, and it went mad. Maybe it was designed to go crazy after a certain number of weeks passed.";
	text3 = "After all this time, there is still much that is unknown about these deadly beasts.";
	action = SET_SDF 63 4 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This is one of the Zephyr Oasis guards. He's young, untrained and terrified. As he is too busy watching for yet another wave of rogue invaders, you are easily able to walk by him without questioning.";

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several ornks wandering in this field. These simple, delicious creatures must be considered acceptable by the powers of the Dera Reaches.";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  WARNING - NO IMPROPERLY DISCIPLINED CREATIONS";
	text3 = "  ALLOWED IN DERA REACHES";
	
begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You try to speak with one of the serviles cowering in these dirty barracks. They don't want to talk to you. One of them looks nervously at the posts and shackles by the west wall.";
	text2 = "Speaking with outsiders might be punished harshly. You leave him alone.";
	text3 = "You notice that one servile, in the corner, isn't cowering as much as the others.";
	code =
		if (char_ok(27) == FALSE)
			rs(3);
	break;

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The bridge guards begin to flee toward the city gates. The Unbound attack has completely broken their morale.";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Now that you are over the bridge, you get a better look at the western farmlands of the Zephyr Oasis. Their crops, where they haven't been scorched by rogue attacks, are brown and sickly.";
	text2 = "Even plants made by the Shapers can generate only a weak yield in this soil.";
	text3 = "As you walk toward the city walls, you see creatures come into view to the southeast. It is a rogue raid. Even more bloodthirsty creations. Probably an unfortunate coincidence, completely unrelated to the Unbound attack.";
	text4 = "After traveling through the Storm Plains, this level of rebel activity in Shaper lands comes as a bit of a shock.";


begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "One of the guards blocking the bridge walks up to you. _Halt!_ he shouts. _I am Sergeant Lander, assigned by Sage Taygen himself to watch this bridge._";
	text2 = "_You need my permission to cross. And, if you have improperly restrained creations, you aren't going to get it._";
	text3 = "Perfect. A snide, officious bureaucrat. He isn't making it the slightest bit easier to control your temper.";
	code =
		if ((num_chars_in_group(0) > 1) || (creature_type(pc_num()) == 46))
			sf(63,2,1);
	break;

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "You really don't want to be bothering me right now.";
	text1 = "_Oh! Really! Well, I wouldn't want to bother you. Just because you're some unknown vagrant, wandering our roads._";
	text2 = "_Now show a few more manners, or you'll get my boot in your backside._ The other soldiers snicker.";
	text3 = "You control your temper. It takes an effort, but you manage it.";
	text4 = "With an enormous effort, you control your temper.";
	code =
		if (gf(100,22) < 14)
			rs(4);
			else rs(3);
	break;
	

begintalknode 12;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Improperly restrained creations?";
	text1 = "_We of the Dera Reaches know where all of our problems have been coming from. Creations being coddled. Not being properly trained. Even the old Shaper ways were too soft._";
	text2 = "_Sage Taygen is fixing that._ The other soldiers nod.";

begintalknode 13;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "I'd like permission to head south.";
	text1 = "_Well, looking at you, you don't need permission to travel. You need a taste of the whip. We don't let serviles run around loose down here._";
	text2 = "_Well, I'm not sure. I don't like the look of your creations. They should be in pens, not wandering like that. Look at them ... There aren't even any chains on them! They will probably have to be put down before you can enter._";
	text3 = "Why is he making it so hard to keep from attacking him? You manage to maintain control.";
	text4 = "That is it. This insect is going to have to learn humility. In the bright sunlight, none of them can see the faint glow that has enveloped your hands.";
	text5 = "He looks for a reason to block your passage. Much to his disappointment, he can't find one. _All right. No creations. We have to let you pass._";
	code =
		clear_strings();
		if (gf(63,2) == 0)
			as(5);
			else {
				if (creature_type(pc_num()) == 46) 
					as(1);
					else as(2);
				if (gf(100,22) < 14)
					rs(4);
					else rs(3);
				
				}
	break;
	
begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = gf(63,2) == 0;
	question = "I'd like to know something before I go.";
	text1 = "He shakes his head. _I'm not your guide. Zephyr Oasis is to the east. You should go there and learn more about our laws. And stay close to the roads. Lots of rogues are about._";

begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = gf(63,2) == 0;
	question = "I'll be going, then.";
	text1 = "Sergeant Lander snorts _Remember. We treat our creations properly here. Lots of visitors here have had problems with it. You respect our laws, and you'll be fine. Otherwise ..._ He waves you by.";
	action = END_TALK;
	code =
		sf(63,3,1);
	break;

begintalknode 16;
	state = 11;
	nextstate = -1;
	condition = gf(63,2) > 0 && get_stat(20) >= 7;
	question = "You are going to step aside now. If you don't, you will regret it.";
	text1 = "Your words were sufficiently intimidating. Some of the soldiers laugh. Sergeant Lander takes a closer look at you. He realizes that this situation is beyond his ability to handle.";
	text2 = "He steps aside. When the other soldiers see what he's doing, they do too. You can pass.";
	text3 = "A tiny, quiet part of your brain wonders why these attacks of rage are returning so quickly and if anything might be done to master them again.";
	action = END_TALK;
	code =
		sf(63,3,1);
	break;
	

begintalknode 17;
	state = 11;
	nextstate = -1;
	condition = gf(63,2) > 0 && get_stat(20) < 7;
	question = "You are going to step aside now. If you don't, you will regret it.";
	text1 = "Your words were not sufficiently intimidating. The soldiers laugh. Sergeant Lander steps forward and shoves you. Wrong answer.";
	text2 = "You hold your arms wide. Your vision is tinted with red. Energy begins to flow out of your hands.";
	text3 = "A tiny, quiet part of your brain wonders why these attacks of rage are returning so quickly and if anything might be done to master them again. Then the battle rage completely overtakes you ...";
	action = END_TALK;
	code =
		sf(63,3,2);
		set_attitude(1001,10);
	break;

begintalknode 18;
	state = 11;
	nextstate = -1;
	condition = gf(63,2) > 0;
	question = "You have made a horrible mistake. (Attack.)";
	text1 = "Sergeant Lander has spent so much time bullying travelers that he's forgotten that not everyone is overawed by the authority of the Shapers.";
	text2 = "You hold your arms wide. Your vision is tinted with red. Energy begins to flow out of your hands.";
	text3 = "A tiny, quiet part of your brain wonders why these attacks of rage are returning so quickly and if anything might be done to master them again. Then the battle rage completely overtakes you ...";
	action = END_TALK;
	code =
		sf(63,3,2);
		set_attitude(1001,10);
	break;

begintalknode 19;
	state = 11;
	nextstate = -1;
	condition = gf(63,2) > 0 && gf(100,22) < 14;
	question = "I need to step back and have a moment to think.";
	text1 = "Sergeant Lander snorts. _Feel free. But we take our laws seriously here, and we know how to treat creations. Obey our laws, or you won't pass._";
	text2 = "You manage to control yourself and back away without attacking. You fear that, if you had modified yourself extensively, that encounter would have gone very differently.";
	action = END_TALK;
	code =
		sf(63,3,1);
	break;
	

begintalknode 25;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Suddenly, one of the bridge guards points to the south and shouts an alarm. Everyone looks to see what has gotten her attention. An Unbound has burst out of the underbrush. The massive creature is charging straight for the bridge.";
	text2 = "It looks like it is completely rogue. It is willing to attack anything and everything it sees.";
	text3 = "The guards forget about you immediately. They prepare to defend the bridge from the beast.";

begintalknode 26;
	state = -1;
	nextstate = 25;
	condition = 1;
	question = "special";
	text1 = "Suddenly, one of the bridge guards points to the south and shouts an alarm. Everyone looks to see what has gotten her attention. An Unbound has burst out of the underbrush. The massive creature is charging straight for the bridge.";
	text2 = "It looks like it is completely rogue. It is willing to attack anything and everything it sees.";
	text3 = "The guards seem willing to forget about their disagreement with you. They would much rather worry about the new foe.";

begintalknode 27;
	state = 25;
	nextstate = -1;
	condition = 1;
	question = "Kill everyone.";
	text1 = "You will not forgive the soldiers their arrogance so quickly. The battle lust takes complete control.";
	action = END_TALK;

begintalknode 28;
	state = 25;
	nextstate = -1;
	condition = 1;
	question = "Join them against the Unbound.";
	text1 = "In a moment, you go from foe to ally. The soldiers turn to face the enormous, mad creation charging toward them.";
	action = END_TALK;
	code =
		set_attitude(1001,3);
	break;

	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Borun";
	text1 = "The serviles around the Zephyr Oasis are extremely quiet, nervous creatures. Based on the cages, posts, and shackles everywhere, you see why.";
	text2 = "One of them isn't entirely cowed. She sits in the corner, watching you. When you meet her gaze, she says, _Hello. I am Borun._";
	text5 = "Borun watches you quietly from the corner. She alone doesn't seem frightened of you.";
	action = INTRO;

begintalknode 31;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "What do you do here?";
	text1 = "_The humans, they let us farm. Is great honor. Do all they say. Work many hour. And they are kind to correct us when we do something wrong._";
	text2 = "Somehow, you detect an undercurrent of sarcasm in Borun's quiet voice.";
	action = SET_SDF 63 5 1;
	
begintalknode 32;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Isn't it dangerous to farm out here?";
	text1 = "_Dangerous. Very dangerous. But we are creations. If other creations kill us, say is fair. Is our fault if creations are so bad._";

begintalknode 33;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "Correct you?";
	text1 = "She points at the shackles and posts by the walls. _Humans are kind. Why else would they punish us? Every day. Even when nothing is done wrong. War is fault of creations, they say. So we are to blame._";

begintalknode 34;
	state = 30;
	nextstate = 32;
	condition = 1;
	question = "The serviles seem very frightened.";
	text1 = "_Oh. Yes. Cages outside? Are for serviles, not other creations. Is deserved, humans tell us, for war caused by creations._";
	text2 = "_Would not disagree. Am only a servile. I know nothing._";
	text3 = "_We are unusual. Most serviles are in the camps._";
	
begintalknode 35;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Are all humans in the Dera Reaches that way?";
	text1 = "_Maybe. Maybe not. I know that all humans who handle serviles are that way. Maybe there are others. Better ones. I do not know them._";

begintalknode 36;
	state = 32;
	nextstate = -1;
	condition = 1;
	question = "Tell me about the camps.";
	text1 = "_I can't speak of them. I have never been there. Gladly. But humans think is best way to keep creations disciplined._";

begintalknode 37;
	state = 30;
	nextstate = 33;
	condition = gf(63,5) > 0;
	question = "What will you do now?";
	text1 = "_Stay here. Work. Hope to avoid angering humans._";
	text2 = "She sighs. _Sometimes I look north. To Storm Plains. Hear is not as bad there. But bridge always guarded._";
	code =
		if (gf(63,6) > 0)
			rs(2);
	break;
	
begintalknode 38;
	state = 33;
	nextstate = -1;
	condition = gf(63,6) == 0;
	question = "Actually, the bridge is unguarded right now. You could escape.";
	text1 = "Borun thinks about this for a minute. She looks at the other serviles, beaten down and desperate. Then she grabs a leather satchel. She stuffs some clothes and food into it.";
	text2 = "She seems like she has been planning this out in her mind for a while. Without even another word to you, she runs out the door.";
	action = END_TALK;
	code =
		sf(63,6,1);
		sf(63,7,1);
		inc_flag(100,0,-2);
	break;
	
begintalknode 39;
	state = 33;
	nextstate = -1;
	condition = gf(63,6) == 0;
	question = "You should just follow your orders. I'm sure things will improve.";
	text1 = "She looks down at the ground. _I hope so. Things for a while only get worse every day. Maybe humans become more kind. I do not know._";
	action = SET_SDF 63 6 1;
	code =
		inc_flag(100,0,2);
	break;

	
//



//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
		